package com.cy1;

import java.util.Date;

public class DateDemo2 {
    public static void main(String[] args) {
        Date d = new Date();
        System.out.println(d.getTime());
        long s=System.currentTimeMillis();
        d.setTime(s);
        System.out.println(d);

    }
}
